<!DOCTYPE html>
<html lang="en">

    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>对象的解构</title>


    <script>
        obj = {
        name:'ssx',
        age:18,
        gender:'男'
    }
    let {gender,age:newAge,name} = obj;
    console.log(newAge,name,gender);
    </script>


</html>
